package com.zyz.E_面向对象.O_代码块.静态代码块;

/**
 * @author: vick
 * @Date: 2025/3/18
 * @Description:
 * @version: 1.0
 */
public class Demo {

    static {
        System.out.println("静态代码块");
    }

    private static final String name = a();

    public Demo() {
        System.out.println("无参构造器");
    }

    public static String a() {
        System.out.println("a 方法");
        return "vick";
    }
}
